win32/gl: Ensure we use the 3.2 core profile
authorChun-wei Fan <fanchunwei@src.gnome.org>
Tue, 10 Feb 2015 08:20:37 +0000 (16:20 +0800)
committerChun-wei Fan <fanchunwei@src.gnome.org>
Tue, 10 Feb 2015 08:21:29 +0000 (16:21 +0800)
commit60195ab021afce26b052213c3145d0dc6b447c0e
treee0d09301fbf834499a8d5c4208289e73724b746e
parent03f5d5a5e41bc42835dc02774a27a5eb5d4d023b
win32/gl: Ensure we use the 3.2 core profile

Emit an error if the profile is different.

This is a follow-up commit to commits cc45e82 (x11/gl: Ensure we use the
3.2 core profile) and 2d9081d (wayland/gl: Ensure we use the 3.2 core
profile), so that we do the same on GDK-Win32.  Update variable names and
comments so that the code is clearer to people, as we still need a
temporary legacy WGL context first before we can use
wglCreateContextAttribsARB() to create a WGL core (3.2+) context.

https://bugzilla.gnome.org/show_bug.cgi?id=741946
gdk/win32/gdkglcontext-win32.c